C# clear console input buffer

100

C# clear console input buffer -

while(Console.KeyAvailable) 
{
    Console.ReadKey(false); // true = hide input
}
Console.ReadKey();

Comments

Submit
0 Comments